package io.gitee.yxsnake.embark.web.core.base;

import lombok.*;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author snake
 * @description 业务异常对象
 * @since 2024/9/28 23:25
 */
@Getter
@ToString
@Builder
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
public class ErrorCode implements Serializable {


    @Serial
    private static final long serialVersionUID = -8818021921602579230L;

    /**
     * 错误码
     */
    private Integer code;
    /**
     * 错误消息
     */
    private String msg;
}
